package org.hzero.business.report.dto;


import java.util.StringJoiner;

/**
 * 简易报表头字段
 *
 * @author: tianhao.luo@hand-china.com 2021/2/19  16:09
 */
public class KnifeReportHeaderColumn {
    /**
     * 前端需要 标题字段
     */
    private final String title;
    /**
     * 前端需要 字段类型
     */
    private final String type;
    /**
     * 前端需要 数据来源字段
     */
    private final String valueField;

    public KnifeReportHeaderColumn(String title, String type, String valueField) {
        this.title = title;
        this.type = type;
        this.valueField = valueField;
    }

    @Override
    public String toString() {
        return new StringJoiner(", ", KnifeReportHeaderColumn.class.getSimpleName() + "[", "]")
                .add("title='" + title + "'")
                .add("type='" + type + "'")
                .add("valueField='" + valueField + "'")
                .toString();
    }

    public String getTitle() {
        return title;
    }

    public String getType() {
        return type;
    }

    public String getValueField() {
        return valueField;
    }
}
